package cn.tedu.service;

import cn.tedu.sp01.entity.User;
import cn.tedu.sp01.web.until.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "USER-SERVICE" ,contextId = "aaaa")
public interface UserClient {
    @GetMapping("/{userId}")
    JsonResult<User> getUser(@PathVariable("userId") Integer userId);

    @GetMapping("/{userId}/score")
   JsonResult<?> addScore(@PathVariable("userId") Integer userId,Integer score);
}
